package com.sky.service;

import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

public interface ReportService {

    /**
     * 根据时间区间统计营业额
     * @param beginTime
     * @param endTime
     * @return
     */
    TurnoverReportVO getTurnover(LocalDate beginTime, LocalDate endTime);
    /**
     * 根据时间区间统计用户数据
     * @param beginTime
     * @param endTime
     * @return
     */
    UserReportVO getUserStatistics(LocalDate beginTime, LocalDate endTime);
    /*
    * 统计指定时间区间内的销量数据排名前10*/
    SalesTop10ReportVO getSalesTop10(LocalDate beginTime, LocalDate endTime);
    /*导出运营数据报表
    * */
    void exportBusinessData(HttpServletResponse response);
}